const index = require('../config/index.js')
export function updateInfo(column, data) {
  return new Promise((resolve, reject) => {
    wx.request({
      url: index.api + `commonUser/info/detail/update/${column}`,
      method: 'put',
      data,
      header: {
        'Authrization': 'Bearer ' + index.token
      },
      success(res) {
        resolve(res)
      },
      fail(res) {
        reject(res)
      }
    })
  })
}
export default {
  updateInfo
}